home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / fungetpi.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  446 b   |  29 lines

  1. /*
  2. \funcref{fun\_getpid}{void fun\_getpid ()}
  3.     {}
  4.     {}
  5.     {newvar()}
  6.     {}
  7.     {fungetpi.c}
  8.     {
  9.  
  10.     The process ID number is returned as an {\em e\_int} variable. 
  11.     Under MS-DOS, this number is set to the paragraph of the PSP. Under 
  12.     UNIX, the true process ID number is returned.
  13.  
  14.     }
  15. */
  16.  
  17. #include "icm-exec.h"
  18.  
  19. void fun_getpid ()
  20. {
  21.     reg.type = e_int;
  22.     reg.vu.intval = (INT16)
  23. #ifndef MSDOS
  24.     getpid ();
  25. #else
  26.     _psp;
  27. #endif        
  28. }
  29.